package main

import "fmt"

type Duck interface {
	//鸭子叫
	Quack()

	//鸭子走
	DuckGo()
}

type Chicken struct {
}

func (c Chicken) Quack() {
	fmt.Println("嘎嘎")
}
func (c Chicken) DuckGo() {
	fmt.Println("大摇大摆的走")
}

func main() {
	c := Chicken{}
	var d Duck
	d = c
	d.Quack()
	d.DuckGo()
}
